package com.tony.scheduler.servlet;

import org.apache.log4j.Logger;

public class LogUtil {

    public static void digest(Logger logger, String interfaceName, String methodName, String time,
                              String result) {
        StringBuffer sb = new StringBuffer();
        sb.append("(");
        sb.append(interfaceName + "." + methodName + ",");
        sb.append(time + "ms,");
        sb.append(result + ")");
        logger.info(sb.toString());
    }
}
